class Tool:
    def getState(state):
        if state == "PENDING":
            return "任务正在等待执行"
        elif state == "STARTED":
            return "任务已启动."
        elif state == "RETRY":
            return "将重试该任务，可能是因为失败"
        elif state == "FAILURE":
            return "该任务引发异常，或已超过重试限制"
        elif state == "SUCCESS":
            return "任务执行成功"
        
tool = Tool
